package jiCheng;

public class Test {
    public static void eat(Animal a){
        a.eat();
    }
    public static void main(String[] args) {
        Dog dog=new Dog("旺财",2);
        Cat cat=new Cat("咪咪",1);

        eat(dog);
        eat(cat);
    }
}
